<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
include("../inc/global.inc");
$rs=mysql_query("select * from buy where b_cl=0 order by id desc");//p_cl=0
while($row=mysql_fetch_array($rs)){
$b=$row[b_info];
$b_title=$row[b_title];
$b_title=preg_replace("/(http:\/\/)?((\w+)\.)?(\w+)\.([a-zA-Z]+)(\.[a-zA-Z]+)?(\/([a-zA-Z\.\/]+))?/","",$b_title);

$b=preg_replace("/(http:\/\/)?((\w+)\.)?(\w+)\.([a-zA-Z]+)(\.[a-zA-Z]+)?(\/([a-zA-Z\.\/]+))?/","",$b);

mysql_query("update buy set b_title='$b_title',b_info='$b',b_sh=1,b_cl=1 where id='".$row['id']."'");

}
?>
<?php 
echo "<script>location='right.php';</script>";?>
处理完成